<?php
/* @var $this yii\web\View */
use metronic\widgets\ActiveForm;
use yii\helpers\Html;

if (Yii::$app->session->getFlash('updated')) {
    \metronic\assets\ToastrAsset::register($this);
    $this->registerJs('toastr.success("保存成功", "", {timeOut: 1000});');
}

$this->title = 'Icon设置';
?>

<div class="portlet light bordered">
    <div class="portlet-title">
        <div class="caption">
            <span class="caption-subject bold uppercase"><?= Html::encode($this->title) ?></span>
        </div>
    </div>
    <div class="portlet-body">

        <?php

        $form = ActiveForm::begin();

        echo $form->field($model, 'value')->imageUpload(['width' => 150, 'height' => 40]);
        
        ActiveForm::end();

        ?>

    </div>
</div>
